using Sandia.MVCFramework.View;
using System;
using System.Collections.Generic;
using System.Text;

namespace Sandia.MVCFramework.ViewManager
{
    /// <summary>
    /// A mainLayout node for IViews.
    /// </summary>
    public class ViewLayoutNode : ILayoutNode
    {
        /// <summary>
        /// The IView for this node.
        /// </summary>
        private IView view;

        /// <summary>
        /// The parent of this node.
        /// </summary>
        private ILayoutNode parent;

        /// <summary>
        /// Constructor for the ViewLayoutNode.
        /// </summary>
        /// <param name="view">
        /// The IView for this node.
        /// </param>
        public ViewLayoutNode(
            IView view)
        {
            this.view = view;
        }

        /// <summary>
        /// The IView for this node.
        /// </summary>
        public IView View
        {
            get { return this.view; }
            set { this.view = value; }
        }

        #region ILayoutNode Members

        /// <summary>
        /// The parent of this node.
        /// </summary>
        public ILayoutNode Parent
        {
            get { return this.parent; }
            set { this.parent = value; }
        }

        #endregion
    }
}
